<ion-modal-view class="filesystem">
	<ion-header-bar class="bar bar-header">
		<button ng-click="pay_close()" class="button back-button buttons button-clear header-item"><i class="icon ion-ios-arrow-back"></i></button>
		<div class="title title-center header-item">支付保证金</div>
	</ion-header-bar>
	<ion-content scroll="false" overflow-scroll="true" style="bottom:44px ;">
		<div class="list">
			<li class="item">
				订单金额：<span class="assertive">{{afpay.money|currency:"￥"}}</span>
			</li>
			<div ng-repeat="payment in order_items.payment" on-tap="checked(payment.id,payment.name,order_items,$index)" ng-show="payment.id !=null">
				<ion-radio style="text-align: left;"  ng-model="payment.checked"  >
		 		<img src="{{payment.logo}}" class="left-zhang"/>&nbsp;{{payment.name}}
		 		<span ng-show="payment.id==2&&!afpay.disabled_reason" class="margin-left-10-my font-middle-my font-gray-my" >余额：{{afpay.advance|currency:"￥"}}</span>
		 		<span ng-show="payment.id==2&&afpay.disabled_reason" class="margin-left-10-my font-middle-my font-gray-my" > {{afpay.disabled_reason}}</span>
		 		<span ng-show="payment.id==5" class="margin-left-10-my font-middle-my font-gray-my">授信额度：{{afpay.credit|currency:"￥"}}</span>
		 		<!--<i  ng-show="payment.id==1" class="ion ion-chevron-down  margin-left-10-my font-gray-my"></i>-->
		 	
		 	</ion-radio>
		 	<div ng-show="isOutLine&&payment.id==1">
			 	<li class="item padding-5" style="background-color:#FFFFf0">
					<div class="left-zhang margin-bottom-10 stable-bg padding-5 bian_gray" style="width: 48.5%;position: relative;"  ng-repeat="bank in afpay.bank" ng-class="{'col-offset-3':$index%2==1}" on-tap="selectOutLine($event,$index)">
						<i class="icon ion-android-done assertive font-1rem-my" style="position: absolute; right: 5px; top: 0;display: none;"></i>
						<span class="calm">{{bank.account_name}}</span>
						<p class="font-middle-my">{{bank.bank_name}}</p>
						<p class="font-middle-my">{{bank.bank_no}}</p>
					</div>	
				</li>
				<li class="item padding-0 item-input item-borderless" style="background-color:#FFFFf0">
					<span class="input-label">上传凭证：</span>
			<div class="file-show">
								<div class="add input-file" ng-repeat="img in input.image" style="overflow: initial;">
									<!--<div style="position: absolute;margin-left: 1.5rem;margin-top: -1.0rem;font-size: 1.0rem;color: #333333;" on-tap="ondelete($index)"><i class="icon ion-close-circled"></i></div>-->
									<img style="width: 100%;height: 100%;" src="{{img.image}}" on-tap="openFileActSheet()">
								</div>
							</div>
							<div class="add input-file" on-tap="doShowFile()">
								<span class="icon ion-plus"></span>
							</div>
							<input id="upfilebutton" type="file" multiple="multiple" accept="image/*" onchange="angular.element(this).scope().onupload(this)" style="display: none;" />
		</li>
			</div>
			</div>
		 	
			<div class="padding">
				<button class="button button-block button-assertive" on-tap="go_pay()">确认付款</button>
			</div>
	</ion-content>
	<div class="bar bar-footer item-input-inset">
		<button class="button button-positive" ng-click="doUploadFile()" style="right: 10px;position: absolute;width: 3rem;">上传</button>
		<button class="button button-positive" ng-click="filelist_close()" style="left: 10px;position: absolute;width: 3rem;">退出</button>
	</div>
</ion-modal-view>